import random  
def generate_random_data(n):
    data = []
    for i in range(n):
        data.append(random.randint(1, 100))
    return data
#调用函数生成随机数据
data = generate_random_data(10)
print(data)